include $(ERP_BASE_PATH)/comm/makefile.comm.v2

INSTALL_PATH = /share/$(USER)/tool/

INCLUDE = -I../include  \
		-I$(ERP_BASE_PATH)/comm/export_include/ \
		-I$(ERP_BASE_PATH)/comm/export_include/app_platform \
		-I$(ERP_BASE_PATH)/comm/export_include/libc2c \
		-I$(ERP_BASE_PATH)/comm/export_include/c2cplatform/component \
        -I/share/comm_ext/ \
		-I../../app/giscoreao/XXO \
		-I../../export_include \
		  
LIB = -L$(ERP_BASE_PATH)/comm/$(LIB_PATH) \
		${CGI_APCGIBASE_LIB} \
		${LOG2_LIB} \
		${MODULE_LIB} \
		${TCONV_LIB} \
	  
OUTPUT  = tool_useraddr_coordinates

OBJS    = tool_useraddr_coordinates.o

all:$(OUTPUT)

.SUFFIXES: .o .cpp
.cpp.o:
	$(CXX) $(CFLAGS) $(INCLUDE) -c $^ 

.o:
	$(CXX) $(CFLAGS) $(INCLUDE) -o $@ $^

$(OUTPUT): $(OBJS)
	$(CXX) $(CFLAGS) -o $@ $^ ${LIB}
	
clean:
	rm -f *.o *.~ *.bak
	rm -f $(OUTPUT)

install:
	mkdir -p ${INSTALL_PATH}
	cp -vf $(OUTPUT) $(INSTALL_PATH)

dep:
	mkdep $(INCLUDE) $(SOURCES) > .depend

ifneq ($(wildcard .depend),)
include .depend
endif
